package visitorpack;

public class EngineDiagnostics implements EngineVisitor {
    public void visit(Camshaft camshaft) {
        System.out.println("Diagnosing the camshaft");
    }
 
    public void visit(Engine engine) {
        System.out.println("Diagnosing the unit engine");
    }
 
    public void visit(Piston piston) {
        System.out.println("Diagnosing the piston");
    }
 
    public void visit(SparkPlug sparkPlug) {
        System.out.println("Diagnosing a single spark plug");
    }
}
